package com.youlu.campus.entity.commission;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author : [dengbo]
 * @className : DistributorChannelActivity
 * @description : [分销活动渠道]
 * @createTime : [2023/3/6 11:23]
 */
@Setter
@Getter
@Document(collection = "distributor_channel_activity")
@CompoundIndexes({
        @CompoundIndex(name = "channelId_1_activityId_1", unique = true,def = "{'channelId':1,'activityId':1}")
})
public class DistributorChannelActivity extends EntityBase {
    /**
     * 渠道Id
     */
    private String channelId;

    /**
     *  活动id
     */
    private String activityId;
    /**
     *  活动名称
     */
    private String activityName;

    /**
     * 活动链接
     */
    private String linkUrl;
}
